<?
require_once 'config.php';
$id = getValue('new_id','int','GET',0);
$news = new TemplateNews();
$news_detail = $news->news_detail($id);
?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="vi" lang="vi" xmlns:og="http://ogp.me/ns#" xmlns:fb="">
<head>
   <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
   <link type="image/x-icon" href="/favicon.ico" rel="icon" />
   <?php
   $seo_news = showSeoMeta('news',$id);
   if($seo_news != '')
      echo $seo_news;
   else {
      ?>
      <title><?=$news_detail['new_title']?></title>
      <meta name="description" content="<?=$news_detail['new_summary']?>"/>
      <?php
   }
   echo $global_meta;
   ?>
   <meta property="og:title" content="<?=$news_detail['new_title']?>" />
   <meta property="og:url" content="<?=DOMAIN.generate_news_detail_url($news_detail)?>" />
   <meta property="og:image" content="<?=DOMAIN.news_img.$news_detail['new_picture']?>" />
   <meta property="og:site_name" content="" />
   <meta property="og:description" content="<?=$news_detail['new_summary']?>" />
   <!-- css -->   
   <link rel="stylesheet" type="text/css" href="/home/css/home.css" />	
   <link rel="stylesheet" type="text/css" href="/home/css/product.css" />
   <link rel="stylesheet" type="text/css" href="/home/css/news.css" />
   <!-- js -->
   <script type="text/javascript" src="/home/js/jquery-1.9.0.min.js"></script>
   <script type="text/javascript" src="<?=TEMPLATE_PATH?>js/common.js"></script>
</head>
<body>   
   <? include('view/common/vic_header.php');?>
   <div class="global_container">
      <div class="slider">
         <?include('view/common/vic_slide.php')?>
      </div>
      <div class="content_wrap">
         <div class="content_left">
            <?include('view/common/vic_content_left.php')?>
            
         </div>
         <div class="content_right">
            <?include('view/news/vin_detail.php')?>
         </div>
      </div>
      <?include('view/common/vic_social_networking.php');?>
   </div>
   <?include('view/common/vic_footer.php');?>
</body>
</html>